home *** CD-ROM | disk | FTP | other *** search
- /*******************************************************************
- * TEXTRA-AREXX script -- Mike Haas, 1993, Public Domain . *
- * *
- * For use with TEXTRA, the GUI-based Amiga Text Editor. *
- * *
- * If you enhance or write your own Textra scripts, please send *
- * to me... especially if you want them added to the package. *
- *******************************************************************/
-
- /*
- ** This script is handy for JForth programmers and
- ** is compatible with all versions of Textra.
- **
- ** It will find and highlight the next-occurring colon
- ** definition IF the ':' operator is in the 1st column.
- ** Especially useful when assigned to a Textra Function
- ** key or CTRL-key macro.
- **
- ** Also selects :struct definitions, anything
- ** that begins with a ':' in the first column.
- ** (:CLASS, for example?)
- **
- ** Mike Haas, Oct 7, 1993
- **
- ** This program is hereby placed in the public domain.
- **
- */
-
- options results
-
- done = 0
-
- do while (done == 0)
-
- checkcancel; if (result == CANCEL) then exit
-
- find ":"
- if result == "OK" then do
-
- get select position
- parse var result stx' 'sty' 'enx' 'eny
-
- if (stx == 0) then do
- hopselect next word
- done = 1
- end
-
- end
- else
- done = 1
-
- end
-
-